
<?php
	// Lấy 8 bài viết mới nhất
	$hotart = new baivietbs();
	//$hotart->isPublish = $isp;
    $hotart->XuatBan=1;
	$ret_hotart = $hotart->LayDanhSachBaiVietMoi(0, 8);

	echo "<marquee onmouseover='this.stop()' onmouseout='this.start()' scrollAmount='3'>";
	for($i = 0; $i < (($ret_hotart == false) ? 0 : count($ret_hotart)); $i++)
		echo "<a style='font-family:Arial; font-size:10pt; color:black' href='news.php?do=baivietchitiet&mbv={$ret_hotart[$i]['MaBaiViet']}'>{$ret_hotart[$i]['TieuDe']}</a> &nbsp&nbsp";
	echo "</marquee>";	
?>
